#coding=utf-8
import xadmin
from homepage.models import Classify,NavPage

    
    
    
class ClassifyAdmin(object):
    list_display = ["name","sort"]
    search_fields=["name","sort"]
    list_filter=["name","sort"]

class NavPageAdmin(object):

    list_display = ["name","url","color","ico","sort","is_activity","category"]
    search_fields=["name","url","color","ico","sort","is_activity","category"]
    list_filter=["name","url","color","ico","sort","is_activity","category"]
    

    
xadmin.site.register(Classify, ClassifyAdmin)
xadmin.site.register(NavPage, NavPageAdmin)

